package perso.perso.view.admin.school;

import java.util.Date;

import perso.perso.converteur.BeanSchoolDateConverteur;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamConverter;

@XStreamAlias("class")
public class BeanClass {

	@XStreamAsAttribute
	private Integer idClass;
	@XStreamAsAttribute
	private String libelle;
	@XStreamConverter(BeanSchoolDateConverteur.class)
	private Date createDate;
	@XStreamAsAttribute
	private Integer schoolId;
	
	@XStreamAsAttribute
	private BeanSchool school;
	
	public Integer getIdClass() {
		return idClass;
	}
	public void setIdClass(Integer idClass) {
		this.idClass = idClass;
	}
	public String getLibelle() {
		return libelle;
	}
	public void setLibelle(String libelle) {
		this.libelle = libelle;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public Integer getSchoolId() {
		return schoolId;
	}
	public void setSchoolId(Integer schoolId) {
		this.schoolId = schoolId;
	}
	
	
	
	public BeanSchool getSchool() {
		return school;
	}
	public void setSchool(BeanSchool school) {
		this.school = school;
	}
	public BeanClass(){}
	

	public BeanClass(Integer idClass){this.idClass = idClass;}
}
